#pragma once
#include"public_struct.h"
bool canConstruct(string ransomNote, string magazine) {
	int ch[30]{ 0 };
	for (auto i : magazine) {
		ch[i - 'a']++;
	}
	for (auto i : ransomNote) {
		ch[i - 'a']--;
		if (ch[i - 'a'] < 0) return false;
	}
	return true;
}